package com.huazi.www.drug.drugz.enity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * @description：新增药品和增加库存
 * @author：zt
 * @date：2021/5/8 9:57
 * @versions：v1.0
 */
public class Medicate {

    private Integer id;           //编号

    private String name;          //申请人

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")     //注解
    private Date date;            //申请时间

    private Integer drugSpecies;     //库存药品种类

    private String applyDrug;     //申请药品名称

    private Integer drugType;     //申请加药类型

    private Double price;         //单价

    private Integer count;        //申请数量

    private String type;          //申请类型（加药or库存）

    private Integer applyStatus;  //申请状态（0：通过 1：通过）

    private String remark;        //备份

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getDrugSpecies() {
        return drugSpecies;
    }

    public void setDrugSpecies(Integer drugSpecies) {
        this.drugSpecies = drugSpecies;
    }

    public String getApplyDrug() {
        return applyDrug;
    }

    public void setApplyDrug(String applyDrug) {
        this.applyDrug = applyDrug;
    }

    public Integer getDrugType() {
        return drugType;
    }

    public void setDrugType(Integer drugType) {
        this.drugType = drugType;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getApplyStatus() {
        return applyStatus;
    }

    public void setApplyStatus(Integer applyStatus) {
        this.applyStatus = applyStatus;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Medicate() {

    }

    /**
     * 库存药品
     *
     * @param name        申请人
     * @param date        申请时间
     * @param drugSpecies 库存药品数量
     * @param type        申请类型 【添加库存】
     * @param applyStatus 申请状态 【0：申请中】
     * @param remark      备注
     */
    public Medicate(String name, Date date, Integer drugSpecies, String type, Integer applyStatus, String remark) {
        this.name = name;
        this.date = date;
        this.drugSpecies = drugSpecies;
        this.type = type;
        this.applyStatus = applyStatus;
        this.remark = remark;
    }

    /**
     * 申请新药
     *
     * @param name        申请人
     * @param date        申请时间
     * @param applyDrug   申请药品名称
     * @param drugType    申请类型
     * @param price       申请价格
     * @param count       申请数量
     * @param type        申请类型【新增药品】
     * @param applyStatus 申请状态【0：申请中】
     * @param remark      备注
     */
    public Medicate(String name, Date date, String applyDrug, Integer drugType, Double price, Integer count, String type, Integer applyStatus, String remark) {
        this.name = name;
        this.date = date;
        this.applyDrug = applyDrug;
        this.drugType = drugType;
        this.price = price;
        this.count = count;
        this.type = type;
        this.applyStatus = applyStatus;
        this.remark = remark;
    }

    /**
     * 全部查询
     *
     * @param id          申请编号
     * @param name        申请人
     * @param date        申请时间
     * @param drugSpecies 库存药品数量
     * @param applyDrug   申请药品名称
     * @param drugType    申请类型
     * @param price       申请价格
     * @param count       申请数量
     * @param type        申请类型
     * @param applyStatus 申请状态
     * @param remark      备注
     */
    public Medicate(Integer id, String name, Date date, Integer drugSpecies, String applyDrug, Integer drugType, Double price, Integer count, String type, Integer applyStatus, String remark) {
        this.id = id;
        this.name = name;
        this.date = date;
        this.drugSpecies = drugSpecies;
        this.applyDrug = applyDrug;
        this.drugType = drugType;
        this.price = price;
        this.count = count;
        this.type = type;
        this.applyStatus = applyStatus;
        this.remark = remark;
    }

}
